<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var func1 = function () {
            console.log("无参函数");
        }
        func1();

        var func2 = function (a, b) {
            console.log("有参函数, a = " + a + ", b = " + b);
        }
        func2("abc", 123);

        var func3 = function (num1, num2) {
            return num1 + num2;
        };
        console.log(func3(12, 3));
    </script>
</head>
<body>

</body>
</html>